package 测试;

import java.util.Scanner;

public class _问题A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
        sc.nextLine();
        int[] arr = new int[count];
        for (int i = 0; i < count; i++) {
            arr[i] = sc.nextInt();
        }
        if ((count & 1) == 0) {
            System.out.println("MYFNB");
        } else {
            System.out.println("MDRNB");
        }
    }
}
